<template>
  <div id="app">
    <ul>
      <li>
        <router-link :to="{name:'home'}">首页</router-link>
      </li>
      <li>
        <router-link :to="{name:'forDemo'}">For示例</router-link>
      </li>
    </ul>
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
};
</script>
<style>
  body{
    padding: 0;
    margin: 0;
  }
</style>
<style scoped>
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: left;
    color: #2c3e50;
    padding: 10px;
    width: 1000px;
    margin: 0 auto;
    box-sizing: content-box;
  }

  h1, h2 {
    font-weight: normal;
  }

  ul {
    list-style-type: none;
    padding: 0;
  }

  li {
    display: inline-block;
    margin: 0 5px 0 0;
  }

  a {
    color: #42b983;
  }
</style>
